package com.tarena.lbs.article.web.repository;

import com.tarena.lbs.article.web.mapper.ArticleCatsMapper;
import com.tarena.lbs.pojo.basic.po.ArticleCategoryPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class ArticleCatsRepository {
    @Autowired
    private ArticleCatsMapper articleCatsMapper;

    public List<ArticleCategoryPO> findAll() {
        //select * from article_category
        return articleCatsMapper.selectList(null);
    }
}
